function CheckChoice(){
	var arrChBox = new Array(), j = 0, i = 0, objChBox, intBT = 11;
	var intMaxSd = 20, isFull = 0, intTotal = 0;
	with(document.ShowOddsForm){
		for(j = 4; j >= 1; j--){
			arrChBox[j] = 0;
			for(i = 0; i <= 9; i++){
				objChBox = document.ShowOddsForm["ChoiceNumber["+j.toString()+"]["+i.toString()+"]"];
				objChBox.disabled = false;
				ChangeClass(i, j, 0);
				if(objChBox.checked){
					arrChBox[j]++;
					intTotal++;
					ChangeClass(i, j, 0);
				}
				if(intTotal == intMaxSd){
					break;
				}
			}
		}
		if(intTotal == intMaxSd){
			for(j = 4; j >= 1; j--){
				for(i = 0; i <= 9; i++){
					objChBox = document.ShowOddsForm["ChoiceNumber["+j.toString()+"]["+i+"]"];
					if(objChBox.checked == false)objChBox.disabled = true;
				}
			}
		}
		BSubmit.disabled = (intTotal >= 4 && arrChBox[1] > 0 && arrChBox[2] > 0 && arrChBox[3] > 0 && arrChBox[4] > 0)?false:true;
	}
}

function ChangeClass(intNum, intType, isOver){
	if(isOver == 1){
		document.getElementById("NumOdds"+intType.toString()+intNum.toString()).style.backgroundColor = '#CCFFCC';
	}else{
		if(document.ShowOddsForm["ChoiceNumber["+intType+"]["+intNum+"]"].checked == false)document.getElementById("NumOdds"+intType.toString()+intNum.toString()).style.backgroundColor = '#FFFFFF';
	}
}